package kr.hkit.powerjava.chapter22.submit;
//테이블이면 student랑 department는 외래키로 연결되있어야함 
//studentManager이랑 공통부분 있으니까 인터페이스로 

public class Department {
	private int deptNo;
	private String deptName;
	private int floor; //몇층인지
	
	public Department(int deptNo, String deptName, int floor) {
		this.deptNo = deptNo;
		this.deptName = deptName;
		this.floor = floor;
	}

	public int getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(int deptNo) {
		this.deptNo = deptNo;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public int getFloor() {
		return floor;
	}

	public void setFloor(int floor) {
		this.floor = floor;
	}

	@Override
	public String toString() {
		return String.format("%3s\t%14s\t%3s",deptNo, deptName, floor);
	}
}
